package com.project2.service;

import com.project2.bean.CommonData;
import com.project2.bean.bo.WxOrderCommentBO;
import com.project2.bean.bo.WxOrderMBO;
import com.project2.bean.bo.WxOrderSubmitBO;
import com.project2.bean.po.MarketOrderGoods;
import com.project2.bean.vo.WxOrderDetailVO;
import com.project2.bean.vo.WxOrderSubmitVO;
import org.apache.ibatis.annotations.Param;

import javax.servlet.http.HttpServletRequest;
import java.util.Date;
import java.util.List;

public interface WxOrderService {

    WxOrderSubmitVO submitOrder(WxOrderSubmitBO orderSubmitBO, HttpServletRequest request);


    CommonData orderList(Integer showType, Integer page, Integer limit,HttpServletRequest request);

    int confirmOrder(WxOrderMBO wxOrderConfirmBO);

    int refundOrder(WxOrderMBO wxOrderMBO);

    int deleteOrder(WxOrderMBO wxOrderMBO);

    List<MarketOrderGoods> goodsInfo(Integer orderId, Integer goodsId);

    WxOrderDetailVO orderDetail(Integer orderId);

    int addComment(WxOrderCommentBO wxOrderCommentBO, Integer userId);

    int cancelOrder(WxOrderMBO wxOrderMBO);

    int payOrder(Integer orderId);
}
